Add TAL-Reverb-II plugin to test
[juce-lv2.git] / juce / source / extras / the jucer / src / ui / jucer_EditingPanelBase.h
blob2d1885fc136f4846daaa3de25d5cd5daa733b096
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCER_EDITINGPANELBASE_JUCEHEADER__
27 #define __JUCER_EDITINGPANELBASE_JUCEHEADER__
29 #include "../model/jucer_JucerDocument.h"
30 #include "jucer_ComponentLayoutEditor.h"
31 class LayoutPropsPanel;
34 //==============================================================================
35 /**
36 Base class for the layout and graphics panels - this takes care of arranging
37 the properties panel and managing the viewport for the content.
40 class EditingPanelBase : public Component
42 public:
43 //==============================================================================
44 EditingPanelBase (JucerDocument& document,
45 Component* propsPanel,
46 Component* editorComp);
48 ~EditingPanelBase();
50 //==============================================================================
51 void resized();
52 void visibilityChanged();
54 virtual void updatePropertiesList() = 0;
56 virtual const Rectangle<int> getComponentArea() const = 0;
58 double getZoom() const;
59 void setZoom (double newScale);
60 void setZoom (double newScale, int anchorX, int anchorY);
62 // convert a pos relative to this component into a pos on the editor
63 void xyToTargetXY (int& x, int& y) const;
65 void dragKeyHeldDown (bool isKeyDown);
67 class MagnifierComponent;
69 protected:
70 JucerDocument& document;
72 Viewport* viewport;
73 MagnifierComponent* magnifier;
74 Component* editor;
75 Component* propsPanel;
79 #endif // __JUCER_EDITINGPANELBASE_JUCEHEADER__